home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java for 3D & VRML Worlds
/
Java for 3d and VRML Worlds.iso
/
examples
/
chap06
/
DoubleFace.wrl
next >
Wrap
Text File
|
1996-10-14
|
1KB
|
51 lines
#VRML V2.0 utf8
#
# show the difference of single face and double face.
#
# single face wall
Transform{
translation 0 -5 0
children[
Shape{
geometry IndexedFaceSet{
coord DEF COORD Coordinate{
point[
0 0 0, #0
10 0 0, #1
10 10 0, #2
0 10 0, #3
]
}
coordIndex [0, 1, 2, 3, -1]
solid TRUE
}
appearance Appearance{
material Material{
diffuseColor 1 0 0 # red
}
}
}
]
}
# double face wall
Transform{
translation -10 -5 0
children[
Shape{
geometry IndexedFaceSet{
coord USE COORD
coordIndex [0, 1, 2, 3, -1]
solid FALSE
}
appearance Appearance{
material Material{
diffuseColor 0 1 0 # green
}
}
}
]
}